package com.lon.over.utils;

import android.util.Log;

/**
 * author: ctl
 * 创建时间: 2022/4/22
 * Describe:
 */
public  class LogUtils {
    private static final int DEFAULT_LEV = 4;
    private static final int DEBUG_LEV = 4;
    private static final int INFO_LEV = 3;
    private static final int WARNING_LEV = 2;
    private static final int ERROR_LEV = 1;

    public static void d(Object object,String  log) {
        if (DEFAULT_LEV >=  DEBUG_LEV) {
            Log.d(object.getClass().getSimpleName(), log);
        }
    }

    public static void i(Object object,String  log) {
        if (DEFAULT_LEV >=  DEBUG_LEV) {
            Log.i(object.getClass().getSimpleName(), log);
        }
    }

    public static void w(Object object,String  log) {
        if (DEFAULT_LEV >=  DEBUG_LEV) {
            Log.w(object.getClass().getSimpleName(), log);
        }
    }

    public static void e(Object object,String  log) {
        if (DEFAULT_LEV >=  DEBUG_LEV) {
            Log.e(object.getClass().getSimpleName(), log);
        }
    }

}
